﻿using System;
using System.Threading;

namespace ThreadPool_example
{
    class Program
    {
        static void Main(string[] args)
        {
            ThreadPool.QueueUserWorkItem(new WaitCallback(ThreadProc));
            Console.WriteLine("主线程 做了一些工作，然后休眠");
            Thread.Sleep(1000);
            Console.WriteLine("主线程退出");
        }

        static void ThreadProc(object stateInfo)
        {
            Console.WriteLine("Hello 来自 thread pool.");
        }
    }
}
